package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.*;

import java.util.List;

public interface OrderService {

    /**
     * 用户下单
     * @param ordersSubmitDTO
     * @return com.sky.vo.OrderSubmitVO
     * @author zhupp
     * @create 2025/2/25
     **/
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return com.sky.vo.OrderPaymentVO
     * @author zhupp
     * @create 2025/2/26
     **/
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功回调
     * @param outTradeNo
     * @return void
     * @author zhupp
     * @create 2025/2/26
     **/
    void paySuccess(String outTradeNo);

    /**
     * 查看历史订单
     * @return java.util.List<com.sky.vo.OrderVO>
     * @author zhupp
     * @create 2025/2/26
     **/
    PageResult pageQuery4User(int page, int pageSize, Integer status);

    /**
     * 查看订单详情
     * @param id
     * @return com.sky.vo.OrderVO
     * @author zhupp
     * @create 2025/2/26
     **/
    OrderVO getOrder(Long id);

    /**
     * 取消订单
     * @param orderId
     * @return void
     * @author zhupp
     * @create 2025/2/26
     **/
    void cancelOrder(Long orderId);

    /*
     * 再来一单
     * @param null
     * @return void
     * @author zhupp
     * @create 2025/2/26
     **/
    void repetitionOrder(Long orderId);

    /**
     * 订单搜索
     * @param ordersPageQueryDTO
     * @return java.util.List<com.sky.vo.OrderVO>
     * @author zhupp
     * @create 2025/2/26
     **/
    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    /**
     * 各个状态的订单数量统计
     * @return com.sky.vo.OrderStatisticsVO
     * @author zhupp
     * @create 2025/2/26
     **/
    OrderStatisticsVO getOrderStatistics();

    /**
     * 接单
     * @param ordersConfirmDTO
     * @return void
     * @author zhupp
     * @create 2025/2/26
     **/
    void confirmOrder(OrdersConfirmDTO ordersConfirmDTO);

    /**
     * 拒单
     * @param ordersRejectionDTO
     * @return void
     * @author zhupp
     * @create 2025/2/26
     **/
    void rejectOrder(OrdersRejectionDTO ordersRejectionDTO) throws Exception;

    /**
     * 取消订单
     * @param ordersCancelDTO
     * @return void
     * @author zhupp
     * @create 2025/2/26
     **/
    void cancelOrderAdmin(OrdersCancelDTO ordersCancelDTO);

    /**
     * 派送订单
     * @param id
     * @return void
     * @author zhupp
     * @create 2025/2/26
     **/
    void deliveryOrder(Long id);

    /**
     * 完成订单
     * @param orderId
     * @return void
     * @author zhupp
     * @create 2025/2/26
     **/
    void completeOrder(Long orderId);

    /**
     * 客户催单
     * @param id
     * @return void
     * @author zhupp
     * @create 2025/2/27
     **/
    void orderReminder(Long id);


}
